package com.wan37.logic.backpack.weaponry.service;

import com.wan37.logic.domain.vo.MessageVO;
import com.wan37.logic.domain.vo.WeaponryVO;
import com.wan37.logic.service.cache.RoleServiceCache;
import com.wan37.logic.service.cache.UserServiceCache;
import com.wan37.protobuf.message.client2server.game.GameBackpack;

/**
 * 装备服务处理
 */
public interface WeaponryService {

    /**
     * 减少武器耐久度
     *
     * @param weaponryVO
     */
    void reduceDurability(WeaponryVO weaponryVO, MessageVO messageVO);

    void updateWeaponryUsageUse(WeaponryVO weaponryVO, UserServiceCache.User user,
                                RoleServiceCache.Role role, MessageVO messageVO);

    void updateWeaponryUsageUnused(WeaponryVO weaponryVO, UserServiceCache.User user,
                                   RoleServiceCache.Role role, MessageVO messageVO);
}
